Updated thermostat.rb