UML diagrams for singleton and interpreter