Create Segment.java