c3dl code and examples