 
 
 class TableViewController: UITableViewController, ClinkDelegate {
-    let clink = Clink.shared
-    
     override func viewDidLoad() {
         super.viewDidLoad()
         

    
    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = UITableViewCell(style: .default, reuseIdentifier: nil)
        cell.textLabel?.text = Clink.shared.connectedPeers[indexPath.row].id.uuidString
        return cell
    }
    

    }
    
    func clink(_ clink: Clink, didUpdateDataForPeer peer: ClinkPeer) {
        print("did update peer data \(peer.data)")
        
        if let sendTime = peer.data["sentAt"] as? TimeInterval {
            let transferTime = Date().timeIntervalSince1970 - sendTime
            
            print("after \(transferTime) seconds")
        }
    }
    
    func clink(_ clink: Clink, didCatchError error: Error) {
