major updates afer I learned how to call functions in different code chunks in Rmd
major update, learned how to call functions in other chunks