R programing Assignment 2: Lexical Scoping - Peter Lin