Added method to get the average rating for a version