edit Lines.java and LinesManagerImpl.java