implement Service class