Fixed bug in C++ #7