service class workings