Another extension: Name.addSegment method