Added new subsection "Creating and passing an R function"