This diagram shows a water pump that uses a motor to drive a cam which pushes a piston up and down. The piston is connected to valves that control the intake and exit of water, allowing water to be pumped from one valve to the other with each stroke of the piston.