     }
     
     override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
-        let sem = semesters[section]
-        return "\(sem.term) \(sem.year)"
+        if section == 0 {
+            return "Favorites"
+        } else {
+            let sem = semesters[section]
+            return "\(sem.term) \(sem.year)"
+        }
     }
     
     override func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {

    }
    
    override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
        guard !searchController.isActive else {
            return 0
        }
        

    private func loadClasses() {
        let realm = DatabaseManager.shared.realm
        let all = realm.objects(Class.self)
        // First append results of classes being favorited in row 0 of the 2D array
        self.classes.append(all.filter("isFavorite == %@", true))
        // The rest of the arrays inside the `classes` array will be grouped by their semester
        semesters.forEach {
            let classes = all.filter("semester.term == %@ AND semester.year == %@", $0.term, $0.year)
