Function of bones in the skeletal system