Implemented class Line and tests.