The cleverness of a dog