Some code snippets for Collection.