Implement SegmentServices and its testing skeleton