rewrite data structure lecture in rmarkdown