implementation of MVC for simulation