Modified @selected_ratings to be a hash instead of array