> ## 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: Creating 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 leeway.

To create the CookingTime block:

1. Activate the **FlexiLayout** window in the program main window.
2. Select the **Blocks** object in the FlexiLayout tree.
3. Select **Add Block →** Text in the **FlexiLayout** menu or **Add Block →** Text in the shortcut menu.
4. In the Properties dialog box, type a name for the block in the Name field, for example, **CookingTime**.
5. To describe the location of the block, select Expression.
6. 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 the program some leeway, enlarge the height and width of the resulting rectangle by 3mm.\
   In the FlexiLayout language this must be written as follows:\
   `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>
