Modified: Enhanced class profile generation