Added scoping notes.
Notes on week 4 of r programming course.