Writing the C++ code for a subsystem