Add resizing of classes.
The size of classes is determined by their content. Name and attributes.