working run_analysis file