added a wrapper class to my service class