GP Emulator in C++