section week 4 .Rmd file (Hw3)