Refactored run_analysis.R