     
     public func controllerDidChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) {
         
-        tableView.beginUpdates()
-        
-        tableView.reloadSections(
-            IndexSet(integersIn: 0..<webServiceController.sections.count),
-            with: .automatic
-        )
-        
-        tableView.endUpdates()
+        tableView.reloadData()
         
     }
     

        fetchedResultsController.delegate = self
        try! fetchedResultsController.performFetch()
        
        let url1 = URL(string: "http://itunes.apple.com/search?term=chocolate&media=music&limit=10&explicit=false")!
        let urlRequest1 = URLRequest(url: url1)
        let webResource1 = WebResource<[SongModel]>(urlRequest: urlRequest1, parse: self.dynamicType.parseSongs)
        let webService1 = WebService(webResource: webResource1)
        let section1 = CHWebServiceSectionInfo(name: "Section 1", webService: webService1)
        
        webServiceController.appendSection(section1)
        
//        let url2 = URL(string: "http://itunes.apple.com/search?term=chocolate&media=music&limit=10&offset=10&explicit=false")!
//        let urlRequest2 = URLRequest(url: url2)
//        let webResource2 = WebResource<[SongModel]>(urlRequest: urlRequest2, parse: self.dynamicType.parseSongs)
//        let webService2 = WebService(webResource: webResource2)
//        let section2 = CHWebServiceSectionInfo(name: "Section 2", webService: webService2)
//        
//        webServiceController.appendSection(section2)
        
        webServiceController.performReqeust()
        
    }
    
    
    // MARK: Parsing

    
    public override func viewDidLoad() {
        super.viewDidLoad()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(
            barButtonSystemItem: .refresh,
            target: self,
            action: .refresh
        )
        
        let modelURL = Bundle.main().urlForResource("Cache", withExtension: "momd")!
        let model = NSManagedObjectModel(contentsOf: modelURL)!
