"simulate.c" was newly added.