Lexical Scoping programming Assignment 2