Added implementation of the Linear class