what is the function of the bone markings illustrated on this rib: head and facets?

What is the function of the bone markings illustrated on this rib: head and facets?

Heads and facets are both terms used to indicate a joint surface. Many bones of the skeleton have heads, which commonly articulate with fossae; facets are smooth, flat joint surfaces that form plane joints.