For C++ exam