Enhanced class name generation