Simple C++ examples for tutorial purposes