結果 : state function and path function all examples