functioning run_analysis.R script