Added a constructor for Lexer