Implement class Line