                 
             }
         }
+        print(self.arrayOfLocations)
+        [locationTableView.reloadData()]
     }
     
     public func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int
     {
-        return arrayOfLocations.count
+        return self.arrayOfLocations.count
     }
     
     public func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
     {
         let cell: LocationCell = locationTableView.dequeueReusableCellWithIdentifier("locationCell") as! LocationCell
-        
-        let locationToDipslay = arrayOfLocations[indexPath.row]
+
+        let locationToDipslay = self.arrayOfLocations[indexPath.row]
         cell.setCell(locationToDipslay.name, imageOfLocation: locationToDipslay.imageUrl, categoryOfLocation: locationToDipslay.category)
         
         return cell
     }
     
     func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
-        let location = arrayOfLocations[indexPath.row]
+        let location = self.arrayOfLocations[indexPath.row]
         
         var detailedViewController: DetailViewController = self.storyboard?.instantiateViewControllerWithIdentifier("DetailViewController") as! DetailViewController
         

    

    func setUpLocations(){
        let userLat = locationManager.location?.coordinate.latitude
        let userLong = locationManager.location?.coordinate.longitude
        var counter = 0

        setUpLocations()
        
    }
    
    override func viewDidAppear(animated: Bool) {
        locationTableView.reloadData()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
