add some simple c++ code