refactoring Simulator:  initialization code -> constructor