Code for generating the tidy data file