Added NonPolynomial class.