better representation of nested classes