Notes on user defined functions

added .Rmd file on user defined functions.