adding the run analysis code for the course project