C++ code that performs a trivial task for whoever wants to use it!