Simple C++ Exercises