Adds UrlPreference class