Principles of classical and instrumental conditioning, and contemporary cognitive views of animal behaviour.