First version of simulator