BGW in C++ and new class to CharmCPP