Perhaps change the type here to ```iterable``` since this should work with lists, tuples, sets, and dicts?