script for creating tidy data set