How does the heart work like a pump?