Diagram: Basic support for hierarchical diagrams