add class LayerGraph and ComponentInstance