Use nested definitions
Add class diagram example