finalized Rmd