Path Function And State Function Class