Modify method in QuadraticEquation