I'm a beginner to nim (and programming in general), so please bear with me here. I'm trying to set up some basic UI functionality in order to independently control and render sections of the terminal using an existing library, but I'm rather uncertain of how to proceed with structuring the elements. I have an object which acts as the frame for each section/widget, storing the portion of the screen and what needs to go in it. Here's where my confusion starts\: I need to store a sequence of heterogenous sub-elements and their associated data.