diagrams package