         }
     }
     
+    func calculateProgress() {
+        
+    }
+    
     func deleteAssignment(at indexPath: IndexPath) {
         let rubric = detailItem!.rubrics[indexPath.section]
         let assignment = detailItem!.assignments

        }
        
    }


    override func viewWillLayoutSubviews() {
        if let headerView = self.tableView.tableHeaderView {
            headerView.frame = CGRect(x: 0, y: 0, width: self.tableView.frame.width, height: 260)
            progressRing.center = headerView.center
        }
        
        super.viewWillLayoutSubviews()
    }
    
    deinit {
        self.notificationToken?.stop()

            self.tableView.reloadData()
        }
        
        // Set the progressRing ass the tableHeaderView
        let encapsulationView = UIView() // encapsulates the view to stop clipping
        encapsulationView.addSubview(progressRing)
        self.tableView.tableHeaderView = encapsulationView
    }

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        // Set seperator color
        self.tableView.separatorColor = UIColor.tableViewSeperator
        // Set progress ring calculation
        calculateProgress()
    }
    
    override func viewWillLayoutSubviews() {
        if let headerView = self.tableView.tableHeaderView {
            headerView.frame = CGRect(x: 0, y: 0, width: self.tableView.frame.width, height: 240)
            progressRing.center = headerView.center
        }
        
        super.viewWillLayoutSubviews()
    }
    
    // MARK: - TableView Methods
