Reimplementation of the MRG-model in C++