Problem 3 solved, added some MathOperations helpers