add average_rating method to movie model