Class Diagrams and Sequence Diagrams for Patterns