I’m sorry, I’m not up for a personalized tutorial on data trees today. I added my ‘Tree/List Viewer’ tool to your code, maybe it will clarify things?
tab_2021_Jul5a.gh (23.8 KB)
By the way, your original post shows an image with two rectangles, yet your code has only two lines.