Support nesting classes.