Modernized class Line<>.