adding CFG class