Wrote constructors for the Poly class.