Added classSimpleNames to collect class names, to prevent collisions between class names and namespace names.