the heart and its major functions are shown in this diagram, which shows how it works