Refactored downloading of package into it's own class