– add some bookkeeping to the abstract container
– use a different way to write memeber variable comments (sic)
The book keeping in this case means calculating the absolute size of the children inside a container as well as recalculating it when adding/removing children.