Finished first prototype for simulation