     }
 
     func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
-        let cell = tableView.dequeueReusableCellWithIdentifier("CellIdentifier", forIndexPath: indexPath) as! UITableViewCell
+        let cell = tableView.dequeueReusableCellWithIdentifier("CellIdentifier", forIndexPath: indexPath) 
 
         let location = locations[indexPath.row]
         cell.textLabel?.text = "\(location.latitude),\(location.longitude)"

            let realm = try! Realm()
            realm.beginWrite()
            // Delete old Location objects
            var oldLocations = realm.objects(Location).filter(NSPredicate(format:"createdAt < %@", NSDate().dateByAddingTimeInterval(-86400)))
            realm.delete(oldLocations)
            try! realm.commitWrite()
        }


    // Make Location object from CLLocation
    private func makeLocation(rawLocation: CLLocation) -> Location {
        let location = Location()
        location.latitude = rawLocation.coordinate.latitude
        location.longitude = rawLocation.coordinate.longitude
        location.createdAt = NSDate()
