Two simple data structure snippets.