solveWhenXisOne() is now a method of Equation class