Utiliy classes for C++