Modify ex3.rb using symbol for hash