What is the function of the ribs, related to the heart and lungs?