Add state.c