Added class function to convert temperature units