public class Recipe {
    int MAX_BLOCKS = 200;  // Longer than this and the algorithm will be slow

    RecipeBlock blocks[]  = new RecipeBlock[MAX_BLOCKS];

    int curBlock = 0;

    public int size() {
	return curBlock;
    }

    public RecipeBlock[]  getBlocks() {
	return blocks;
    }

    public void addBlock(RecipeBlock rb){
	blocks[curBlock] = rb;
	curBlock++;
    }
}
