Modeling structure for simulator to run programs