Added base class for lexer