completed temperature.rb