How does the skeletal system function