intermediate version of run_analysis.R