A dog leans off the dock to fetch a ball in the water .