code: @Override
    public void addBlock(BlockInfo newblock) {
      if (this.blocks == null) {
        this.blocks = new BlockInfo[1];
        this.blocks[0] = newblock;
      } else {
        int size = this.blocks.length;
        BlockInfo[] newlist = new BlockInfo[size + 1];
        System.arraycopy(this.blocks, 0, newlist, 0, size);
        newlist[size] = newblock;
        this.blocks = newlist;
      }
    }
docs: add a block to the block list