Simulation written. Next step : test cases and implementation of memory