updated Line.java