結果 : explain state function and path function with example