explain how the heart work