added the ability to graph polynomials