nested classes and renaming