src code for simulation
src code for simulation