adding process to prevent over enrolling for a class