added ratings and method to get averages