Made Segment immutable