example for outputting class distribution