Updated .Rmd file with assignment code