Some C++ example exercises