Added a section on functions in R