attaching a getUrl() method to Resource
changes