creating a cpp file for MyASTConsumer class