Exercises: Hierarchical structures