Add the __init__ method for class Lexer