Added constructors for Linear and Piecewise