made rating a method
match class refactored