First function implemented for CFG.
Follow function implemented for CFG.
GUI added and bug with empty symbol fixed