See:
https://community.carbide3d.com/search?q=closing%20%23tutorials
and for a compleated file:
and you may want to check out: