Code from the C++ group