add class quota to class distribution method