refactored Service, implemented the addition of one subgraph in the model