 import UIKit
 
 class RandomizerDataSource: NSObject, UICollectionViewDataSource {
-
+    
     var core = App.core
     var students = [Student]()
     var teamSize = 2
     
-    var sectionSize: Int {
-        return students.count / teamSize
+    var remainder: Int {
+        return students.count % teamSize
     }
-    
+
     deinit {
         core.remove(subscriber: self)
     }

    }
    
}


    }
    
    func title(forSection section: Int) -> String {
        var headerString = "Team \(section + 1)"
        if teamSize(forSection: section) != teamSize {
            headerString +=  " (\(teamSize(forSection: section)))"
        }
        return headerString
    }
    
    func numberOfSections(in collectionView: UICollectionView) -> Int {
        return numberOfTeams
    }
    
    func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
        return students(inSection: section).count
    }
    
