Examples on Design Patterns