Added the cookies example. Convert any Iterable to a PMF.