Cognitive approach to understanding behaviour