Written a simple download code