updated doctest to pass when using lists, sets, and other collection types