Added new code to learn C++ better.