The mind of the dog