Mathematical Model of Thyroid Function