 
 class HomeViewController: UIViewController, UITableViewDataSource, UITableViewDelegate, FSCalendarDataSource, FSCalendarDelegate {
     
-    public var schedule: String = ""
+    @IBOutlet weak var viewCalendar: FSCalendar!
+    @IBOutlet weak var scheduleTable: UITableView!
+    
     let apiController = APIController()
     let tableCellIdentifier = "tableCell"
+    
     fileprivate weak var calendar: FSCalendar!
-    @IBOutlet weak var viewCalendar: FSCalendar!
-    @IBOutlet weak var scheduleTable: UITableView!
     
     var classes = [Class]()
     var jsonData = [String: JSON]()

        
        self.classes.removeAll()
        
        for (_, dayClass) in self.jsonData[self.dateFormatter.string(from: date)]! {
            self.classes.append(Class(name: dayClass["unidade"].stringValue, room: dayClass["sala"].stringValue, startTime: dayClass["inicio"].stringValue, endTime: dayClass["termo"].stringValue))
        }
        
        DispatchQueue.main.async(execute: {
            self.scheduleTable.reloadData()
        })
    }

}

                    self.jsonData[key] = data
                }
            }
            
            DispatchQueue.main.async(execute: {
                self.scheduleTable.reloadData()
                self.calendar.reloadData()
            })
        })
        
        self.calendar = viewCalendar
