You need some way of grouping together elements with the same key.