Grasshopper object

I need to make an object composed of several solids stacked on top of each other, but the top object has to move together with the central part when I raise or lower it. Which command should I use?

I wonder which command we use to Move things…. I feel like it’s right on the tip of my tongue

How about a picture. Or some code…or literally anything to help us better understand your question?