Grouping the baked contour

please help!
I am attempting to bake contour with attributes, and the code works pretty well. but I want the baked contour to be grouped altogether as a single group. i tried so many times, but each baked contour keep grouping separately. here the script without grouping code :

BakeContours.gh (14.1 KB)

here the screenshot :

image