```
area_dictionary = {
  "Alabama" => "205",
  "Alaska" => "907",
  "American Samoa" =>"684",
  "Arizona" => "480",
  "Arkansas" => "479",
  "California" => "209",
  "Colorado" => "303",
  "Connecticut" => "203",
  "Delaware" => "302",
  "Florida" => "239",
  "Georgia" => "229",
  "Guam" => "671",
  "Hawaii" => "808"
}

def get_city_name(hash,key)
    hash.each{|k,v|puts k if v==key}
end
    puts"Please enter the code for which you want to find the city?"
    code = gets.chomp
    if area_dictionary.include?(code)#getting trouble from here
      puts "The city for #{code}is#{get_city_name(area_dictionary,code)}"
    end

```