simulate.cpp created