refactored to use url factory
Merge pull request #8 from whitneyimura/whitney-feat-use-url-factory

refactored to use url factory