How can the heart beat when it is outside of the body?