Coding examples in C++