How a dog's brain works.