The cardiovascular system includes the heart and blood vessels, and functions to circulate blood throughout the body. The heart has four chambers - two atria which receive blood, and two ventricles which pump blood out of the heart. The heart is surrounded by layers including the endocardium, myocardium, and epicardium. It is regulated by an intrinsic conduction system including the sinoatrial node which initiates heartbeats. Deoxygenated blood enters the heart and is pumped to the lungs, where it receives oxygen and is then pumped through arteries throughout the body by the heart before returning to it through veins to repeat the cycle.