added URL::segment() method