This is the updated program for Lexical scope concepts