added CadProblem class and a printCAD function