changes for hw2 part 2, made class variables @allRatings and @ratingsFilter