added average rating method