finished code and knitr report