organized MathProblem and used Strategy Pattern on operator