Line class implemented