def get_grade(hash) # replace array with a hash as a parameter hash = {A: 90..100, B: 80...90, C: 70...80, D: 60...70, E: 50...60, F: 0...50} # create a hash that pairs keys (letter grade) with values (numerical range). Can you use "..." as a value in a hash? sum = 0 # default the sum to 0 hash.each do |key, val| # iterate and say that in the hash, for each value, you're going to add that value to the sum sum += val # incrimenting the value to the sum end average = sum / val.length # defining average, which is the sum divided by the value length (val.length) # not sure what to do here! end end