New code examples

Newly added code examples for various design patterns