@Override public String toString(){
  if (!isFailed()) {
    return groundings.toString();
  }
 else {
    return "failed";
  }
}

@ Override public String toString ( ) { if ( ! isFailed ( ) ) { return groundings . toString ( ) ; } else { return "failed" ; } }
returns a string representation of the set of assignments
