averageRating function in TalkManager