added rating functionality to the service