Proof that dogs are smarter than we think