Source code from a C++ tutorial I'm doing.