working on simulation code.
working on simulation code.