Create MainState.cs