How are the functions of the rib cage and the spine similar?

They help the body collect information from the environment.
They help the body move.
They prevent the bones from rubbing against each other.
They protect the internal organs of the body.