add two variables to simulator state classs.
finish! alpha version.