Some code written in C++