create cgClass