         Warning(severity: .Orange, column: "Clean Water Education"),
         Warning(severity: .Yellow, column: "Hygenic Facilities")]
     
+    let deviceData = [Warning(severity: .Green, column: "Temperature at tents is OK"),
+        Warning(severity: .Red, column: "Temperature at sanitaire is high")]
+    
     override func viewDidLoad() {
         super.viewDidLoad()
         

}

enum Severity {
    case Yellow, Orange, Red
    
    static func image(severity: Severity) -> UIImage {
        switch(severity) {

        self.tableView.tableFooterView = UIView(frame: CGRectZero)
    }
    
    override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        return 2
    }
    
    override func tableView(tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
        if section == 0
        {
            return "Warnings from collected data"
        } else
        {
            return "Warnings from LoRa devices"
        }
    }
    
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        if section == 0
        {
            return data.count
        } else {
            return deviceData.count
        }
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("warning", forIndexPath: indexPath)
        
        var warning : Warning?
        if indexPath.section == 0 {
            warning = data[indexPath.row]
        } else if indexPath.section == 1 {
            warning = deviceData[indexPath.row]
        }
        
        cell.imageView?.image = Severity.image(warning!.severity)
        cell.textLabel?.text = "\(warning!.column)"
        
        return cell
    }
