Conditioning of animals, cognitive functions