Uncommented the getRating function, as it seems to work properly, even
though it only returns the average rating.