updated rmd example