Update 3.rb to Hash