[CG] create base class