The heart is a hollow muscular organ composed of two pumps - the right heart pumps blood through the lungs while the left heart pumps blood through the body. The heart's rhythm is controlled by a conduction system that generates electrical impulses, causing the muscles to contract. These electrical impulses can be monitored by an electrocardiogram (ECG), which shows distinct waves representing the depolarization and repolarization of the heart's chambers during each heartbeat. The P wave corresponds to atrial depolarization, the QRS complex corresponds to ventricular depolarization, and the T wave corresponds to ventricular repolarization.