How Cognitive Psychology Explains Behaviour