Added class Segment