change service to class