Used visitor patter to generate URL segments