Essential C++ example