Automated counter balance motion

Hello guys,
I am new to Kangaroo & Grasshopper. Basically, I am trying to automate an object with counterweights on a curved rod
Counter balance.3dm (2.3 MB)
so that the rod will pivot at the centre due to counterweights.
And each object has to have different colours too.