結果 : what is the state function and path function