Created simulate() method