Dice - finished with the code of downloading data and writing to a text file.