consumeBlocks and new block(int,String) constructor implemented