modified weather.rb