Just the right amount of heat can give people tans