Development and function of the reproductive system