Added some code snippets