Difference Between Path And State Function