         let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! GooglePlaceTableViewCell
         
         // Get the corresponding candy from our candies array
-        let place = self.places[(indexPath as NSIndexPath).row]
+        let place = self.places[indexPath.row]
         
         // Configure the cell
         cell.nameLabel.text = place.name
-
+        
         cell.addressLabel.text = place.description
         cell.accessoryType = UITableViewCellAccessoryType.disclosureIndicator
         

    
    fileprivate class func doRequest(_ urlString: String, params: [String: String], success: @escaping (NSDictionary) -> ()) {
        if let url = URL(string: "\(urlString)?\(query(params as [String : AnyObject]))"){

            let request = URLRequest(url: url)
            
            let session = URLSession.shared
            let task = session.dataTask(with: request, completionHandler: { (data, response, error) in
                self.handleResponse(data, response: response as? HTTPURLResponse, error: error, success: success)
            })
            task.resume()
        }
    }

    
    override open func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        
        let place = places[indexPath.row]
        
        place.getDetails { [unowned self] details in
            self.closure?(details)
        }
    }
}
