Added getter methods to MathProblem