This is the code for implementation of simulation framework