Added constructor for Linear.