Additional comments have been added to clarify that these functions
demonstrate lexical scoping in R.