Draft of systematized simulation but not working