Added the MathProblem class in the src dir.