First commit of new Segment class