Integrating C++ classes