Edited the R file with the solution for Programming Assignment 2: Lexical Scoping