first draft of simulator