A dog waits for a man to throw a ball into the ocean .