add example servicefactory