Improved SimpleThermometer example