Added a temperature conversion function