Fix thermometer class definition