Structuring Components in a Class Hierarchy