general iteration, adding the concept of LabeledCategory