C++ version 1 done.