Added first version of thermostat