@Override public String rest(){
  return document.substring(cursor);
}

@ Override public String rest ( ) { return document . substring ( cursor ) ; }
this will return the parts of document not yet read through by the reader
