How the run_analysis.R script works