public ScriptBuilder addChunk(int index,ScriptChunk chunk){
  chunks.add(index,chunk);
  return this;
}

public ScriptBuilder addChunk ( int index , ScriptChunk chunk ) { chunks . add ( index , chunk ) ; return this ; }
adds the given chunk at the given index in the program
