Changed names
updated the simulate function