Even a dog knows rules