added code for tidy data set