cgClass API & Demo