Multiclass labeling