C++ implementation complete