The document summarizes the function of the heart in 3 parts: 1) It describes the structure of the heart including the chambers, valves, arteries and conduction system. 2) It explains how the heart acts as a pump by contracting its chambers in a coordinated way, driven by electrical signals from pacemaker cells. 3) It details the two types of cardiac cells (cardiomyocytes and pacemaker cells), how they generate and transmit electrical signals to trigger synchronized contractions that pump blood throughout the body.