grammar and lexer updated, a new class has been added in order to build the graph