Create switch_state.pd