Worked on simulate

Currently not working.