add patternobject and subgraph to classmodel