Refactored the ratings controller with Chris