updated Lex.cpp