Development of the endocrine system