These are the codes used for simulation in UROP project