A dog can master a new trick.