Code written in C++ for various purposes