Tutorial example of some basic C++ features