what are the three function of the skeleton?