Added Segment.java