Create simulate.cpp