Average_rating method updated