completed code

Complete rmd, md, html, and all figures for assignment 1