Added example C++ simulation.