Path Function And State Function Definition