Updated generator pattern.
Updated generator pattern.

mdk/mdk-code-snippets,mdk/mdk-code-snippets,mdk/mdk-code-snippets,mdk/mdk-code-snippets,mdk/mdk-code-snippets,mdk/mdk-code-snippets,mdk/mdk-code-snippets,mdk/mdk-code-snippets