Basic C++ examples