In a normal heartbeat, the ventricles contract after the atria have helped to fill them by contracting; in this way the ventricles can pump a maximized amount of blood both to the lungs and to the rest of the body.