     }
     
     @IBAction func getData() {
-        API.getData(bytes: 957) { [weak self] response in
-            self?.handle(response) { data in
+        API.getData(bytes: 957) { [weak self] result in
+            self?.handle(result) { data in
                 print("httpbin.org returned \(data.count) bytes of data")
             }
         }

    
    // MARK: - IBActions
    @IBAction func findIPAddress() {
        API.getIP { [weak self] response in
            self?.handle(response) { ip in
                print("Your IP address is : \(ip.address)")
            }
        }
    }
    
    @IBAction func bounceHeaders() {
        API.getHeaders { [weak self] response in
            self?.handle(response) { headers in
                print("Response headers from httpbin.org:")
                headers.forEach { key, value in
                    print("\t\(key): \(value)")

            ])
        
        do {
            try API.postJSON(headers) { [weak self] result in
                self?.handle(result) { json in
                    print("You send the following JSON to httpbin.org: \(json.string)")
                }
            }
