Adding run_analysis code