create methods that will update the state of expected and gotten token.