added thermostat.rb and associated rspec test file

[66016422]