Added total and average rating functionality