added run_analyis.R

The coding file to fulfill the course project.