First version of run_analysis