Implemented Ground variables for a rule according to its forward state node