add scratch-simulator.cc