State And Path Function Examples