Added quadratic functionality, but not complex numbers yet