Assignment2, Lexical Scoping, completed