     func didAddNewClass() {
         //New class added from popover view controller
         getData()
+        self.saveClasses()
         tableView.reloadData()
     }
     

            parseScheduleJSON()
        } else {
            //Not first launch
            let data = defaults.object(forKey: "classes") as! Data
            classes = NSKeyedUnarchiver.unarchiveObject(with: data) as? [JHSchoolClass]
        }
        classes = sortClassesByStartTime(classes: classes!)
        classesByDay = sortClassesByDay(classes: classes!)

                    }
                    i += 1
                }
                self.saveClasses()
                self.refreshData()
                self.tableView.reloadData()
            }))
