Create UpdateState.m