> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sample 2. Step 24: Create a CookingDescription block

> Assemble the cooking instructions block from a FlexiLayout language expression that joins element rectangles into a non-rectangular OutputRegion.

Create the **CookingInstructions** block to combine the cooking instructions and the number of servings into a single output region.

<Steps>
  <Step title="Open the FlexiLayout tab">
    Click the **FlexiLayout** tab in the FlexiLayout Studio main window.
  </Step>

  <Step title="Select the Blocks object">
    Select the **Blocks** object in the FlexiLayout tree.
  </Step>

  <Step title="Add a text block">
    Select **Blocks → Add Block → Text** in the **FlexiLayout** menu or the shortcut menu.
  </Step>

  <Step title="Name the block">
    In the **Properties** dialog box, enter the block name **CookingInstructions** in the **Name** field.
  </Step>

  <Step title="Set the location method">
    Select **Expression** to describe the block location.
  </Step>

  <Step title="Enter the block expression">
    Describe the block location so that it includes only the cooking instructions and the number of servings, and excludes unwanted text (any text that may precede the word `Serves`). Describe the block as a collection of rectangles around the **CookingDescription**, **Serves**, and **Servings** elements. This method lets you specify non-rectangular regions.

    In the [FlexiLayout language](/flexi-capture/fls/code/general-code), write this:

    ```text theme={null}
    RectArray outputRectArray;
    //initializing the variable with the help of an empty constructor
    outputRectArray = RectArray();
    //adding the rectangles of the hypotheses of three elements
    outputRectArray.Add ( SearchElements.Cooking.Description.CookingInstructions.Rect );
    outputRectArray.Add( SearchElements.Cooking.Description.Serves.Rect );
    outputRectArray.Add( SearchElements.Cooking.Description.Servings.Rect );
    OutputRegion = Region( outputRectArray );
    ```
  </Step>
</Steps>
