Started writing the C++ classes