updates students.rb to iterate over initial hash