Added code snippets.