Function of bones in skeletal system