Added function to get the average rating of a course based on review score