adding initial code and tidy data