Optimizing class structure.