Tutorial on writing the C++ file