final version of run_analysis.R for submission 1.