add Segment classes