basic pattern diagrams