Created C++ implementation (fully compliant)