Added some code snippets.