> ## 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 18: Create a CookingTime block

> Define the CookingTime block with a FlexiLayout language expression that merges the element rectangles and inflates the result by 3 mm for flexibility.

<Steps>
  <Step title="Activate the FlexiLayout window">
    In the FlexiLayout Studio main window, activate the **FlexiLayout** window.
  </Step>

  <Step title="Select the Blocks object">
    In the FlexiLayout tree, select the **Blocks** object.
  </Step>

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

  <Step title="Name the block">
    In the **Properties** dialog box, type a block name in the **Name** field, for example, **CookingTime**.
  </Step>

  <Step title="Set the location method">
    To describe the block location, select **Expression**.
  </Step>

  <Step title="Enter the block expression">
    Describe the block as a rectangle created by merging the rectangles around the [CookingTimeHeader and CookingTime](/flexi-capture/fls/template/blocks-region) elements. To give FlexiLayout Studio some flexibility, enlarge the height and width of the resulting rectangle by 3 mm.

    In the FlexiLayout language, write it as follows:

    ```text theme={null}
    Rect outputRect;
    outputRect = SearchElements.Cooking.CookingTime.Rect Or SearchElements.Cooking.CookingTimeHeader.Rect;
    OutputRegion = outputRect;
    OutputRegion.Inflate (3*mm, 3*mm);
    ```

    <Frame>
      <img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/tutorial2_20.png?fit=max&auto=format&n=r-nfa7jujx5b9gKX&q=85&s=526e6b3766ff6f0ff2ec8e5925916896" alt="Screenshot of the Properties of Blocks.Block dialog box in ABBYY FlexiLayout Studio, showing the CookingTime text block with Expression selected and the FlexiLayout language code that merges the element rectangles and inflates the result." width="431" height="454" data-path="images/flexi-capture/fls/tutorial2_20.png" />
    </Frame>
  </Step>
</Steps>
