Function of male reproductive system