Making an histogram


Im stuck in this section: Sorting the Hash. My code is right because its the same from the first lesson. Sorry for my english. Thanks for the help!
puts "Text, please: "
text = gets.chomp
words = text.split(" ")
frecuency =
words.each { |word| frecuency[word] += 1 }
frecuency = frecuency.sort_by {|a, b| b }



please try it with frequency