simulation.cpp alpha