Working on LineSegment preprocess_prog