Adding countable and iteratoraggregate interfaces to Segment Class