Simple C++ utility classes