I was trying to create a generic collection, PowerCollection, such that e.g. PowerCollection([0,1], 2) would contain [0, 0], [0, 1], [1, 0], and [1, 1], but I ran into troub