# Wrapping Up

To finish our project, we need to detect if the golf ball is in the same are as the hole.

To do this, we'll use the **Rectangles in Rectangle** block:

1. Go to the blocks bar,
2. Under **Detections/Shapes**, go to the **Roi Processing** section and drag-drop the **Rectangles in Rectangle** block into the scenario:

![](https://63608322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbH8gla5D8g5pQAK8IzR8%2Fuploads%2Fgit-blob-d290913ed6d759a8f9504623464514a84f484ab3%2Fbefore-rect-0.png?alt=media)

An alternative and faster way to add blocks is to use the search functionality. Double-click on an empty area and type **Rectangles**:

<figure><img src="https://63608322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbH8gla5D8g5pQAK8IzR8%2Fuploads%2Fgit-blob-9e54427e4b856ac1ba90d2ea58e072e747f185a2%2Fsearch-func.png?alt=media" alt="before-rect" width="450"><figcaption></figcaption></figure>

then press _Enter_ on your keyboard. This will automatically create the block under your cursor:

<figure><img src="https://63608322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbH8gla5D8g5pQAK8IzR8%2Fuploads%2Fgit-blob-785d0d3a9d4aa682b6fc3b255d893873b155bfd9%2Frect-in-rect.png?alt=media" alt="search-func" width="450"><figcaption></figcaption></figure>

Now, we'll one last block: **Image ROI Select**. Use the search functionality to put the in the scenario and rearrange functional blocks just as shown below:

![](https://63608322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbH8gla5D8g5pQAK8IzR8%2Fuploads%2Fgit-blob-93d59ed9f9cbe76fd048c63b75cf321d69d06614%2Frect-in-rect-connected.png?alt=media)

Good, here **Rectangles in Rectangle** block checks if there are any rectangles in the reference area. To see if there is a score made, we'll connect **Led Output** and **Show Image** block:

![alt text](https://63608322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbH8gla5D8g5pQAK8IzR8%2Fuploads%2Fgit-blob-25a56cf17872b64bf5944b2ae709451c739d6b7d%2Fled-show-image.png?alt=media)

Now, it's time to run our scenario! Go ahead and click <img src="https://63608322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbH8gla5D8g5pQAK8IzR8%2Fuploads%2Fgit-blob-336c18484aa93d35401e4cf66bff9e99257fee93%2Fplay.png?alt=media" alt="run" data-size="line"> to see the results:

![alt text](https://63608322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbH8gla5D8g5pQAK8IzR8%2Fuploads%2Fgit-blob-38aabfdd7a1cad558ca9a19951851bc6ccb7c91f%2Fproject-finished.webp?alt=media)

🎉 Congratulations! You've made your very first AugeLab Studio scenario and made a golf scoring detector!

You've learned the most important basics on how to create and run scenarios. AugeLab Studio features scenario building by function blocks alone. Which means you only need to explore more function blocks to empower your capability and that's it!
