<human>:  What is the function of melanin?
<bot>: Melanin is a pigment that is found in the skin, hair, and eyes. It is responsible for the color of these body parts. It also plays a role in protecting the body from UV radiation.