Finished up C++ example