結果 : explain path function and state function