class Line for supporing branching