Clever dog learns to open gate with paws