How to Use the Diagram Framework