add MathProblem class