encapsulated the rating attributes into the model and form