Added code

First iteration SIM code