Well they need to exist _somewhere_. The code I shared above only stores a reference to the object in the table, the object itself lives on the heap. The reason for this is because the object is declared as a `ref object`. If you try to change that to just `object` then you will see the program behaving quite differently.
You might also find this helpful: <https://peterme.net/nim-types-originally-a-reddit-reply.html>