Function of the thymus gland