a lab code base for CG learning