The heart has four chambers - right and left atria receive blood returning from the body and lungs respectively, and pump it to the right and left ventricles which pump blood to the lungs and body. It is located in the mediastinum and surrounded by membranes. The heart wall has three layers - epicardium, myocardium and endocardium. The sinoatrial node initiates electrical impulses which travel through pathways to coordinate contractions. Deoxygenated blood enters the right atrium and is pumped to the lungs, then returns oxygenated to the left atrium to be pumped through the body by the left ventricle.