constructor for TemperatureConverter