This is one clever pup!