adding snippets and code