Refactored Network for cleaner program flow. Removed Url class.