 
 final class Browser: NSObject {
     private let browser: MCNearbyServiceBrowser
-    private let didFindPeer: (PeerIdentifier) -> Void
-    private let didLosePeer: (PeerIdentifier) -> Void
+    private let didFindPeerHandler: (PeerIdentifier) -> Void
+    private let didLosePeerHandler: (PeerIdentifier) -> Void
     var didChangeListeningHandler: ((Bool) -> Void)?
     internal private(set) var listening: Bool = false {
         didSet {

                        foundPeer peerID: MCPeerID, withDiscoveryInfo info: [String : String]?) {
        do {
            let peerIdentifier = try PeerIdentifier(mcPeer: peerID)
            didFindPeer(peerIdentifier)
        } catch let error {
            print("cannot parse identifier \"\(peerID.displayName)\" because of error: \(error)")
        }

    func browser(browser: MCNearbyServiceBrowser, lostPeer peerID: MCPeerID) {
        do {
            let peerIdentifier = try PeerIdentifier(mcPeer: peerID)
            didLosePeerHandler(peerIdentifier)
        } catch let error {
            print("cannot parse identifier \"\(peerID.displayName)\" because of error: \(error)")
        }
