completed temperature.rb and array_extensions.rb