Restructured the snippets and changed a few details.