made ThermoStat return a Temperature object