Step 2: Create a new tool
Then we need to define a new tool in GeoGebra to apply recursion.
In GeoGebra Classic 5, desktop version:
Create New Tool
Menu > Tools > Create Tool
![](https://www.geogebra.org/resource/m823cz5g/bxwRsS78r9O1FIW7/material-m823cz5g.png)
![](https://www.geogebra.org/resource/m823cz5g/bxwRsS78r9O1FIW7/material-m823cz5g.png)
On the pop out window
Output Objects > Select ListOutPut
![](https://www.geogebra.org/resource/fwhvej9m/NWma3j352h0XqqAG/material-fwhvej9m.png)
Input Objects > Select original segment
Click on Next
![](https://www.geogebra.org/resource/gsddgtvd/b7wdgyc2y9vlcBlq/material-gsddgtvd.png)
Name the tool and command. Add help, if needed.
Click on Finish to create tool.
![](https://www.geogebra.org/resource/aq6gdvua/fbITJlHbfXqEuLrX/material-aq6gdvua.png)
In GeoGebra classic online version, or also GeoGebra 6 for desktop:
Access GeoGebra classic
![](https://www.geogebra.org/resource/n9mt9zs6/h05dBmGXbnp59wou/material-n9mt9zs6.png)
On three-bar menu, top-right corner, select Create New Tool
![](https://www.geogebra.org/resource/wkephd7j/O7yQOoQydAky5x29/material-wkephd7j.png)
Select Output Objects
![](https://www.geogebra.org/resource/dmpaerwx/RYW01w0AXNaT4e5m/material-dmpaerwx.png)
Select Input Objects
![](https://www.geogebra.org/resource/sefdtmbu/qetwcmiB7lY1VrzQ/material-sefdtmbu.png)
Name your tool and click on Finish
![](https://www.geogebra.org/resource/fwnu4uhs/Kt3M6Lx0S5qvhsys/material-fwnu4uhs.png)