Create state.lua