             }
 
             var array: Array = dict["movies"] as NSArray
-            
+
             self.movies = array.map({ (m) -> Movie in
                 return Movie(
                     title: m["title"] as String,

        println(message)
        banner.hidden = false
    }
    
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        let controller = segue.destinationViewController as MovieDetailViewController

        return cell
    }

    func fetchData(showLoadingSpinner: Bool) -> Void {
        let apiKey = ""
        let url = NSURL(string: "http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json?apikey=\(apiKey)")!
        let request = NSURLRequest(URL: url)

        banner.hidden = true
        
        if showLoadingSpinner {
         MBProgressHUD.showHUDAddedTo(self.view, animated: true)
        }

        NSURLConnection.sendAsynchronousRequest(request, queue: NSOperationQueue.mainQueue()) { (response, data, error) in
            MBProgressHUD.hideHUDForView(self.view, animated: true)
            self.refreshControl.endRefreshing()

            if error != nil {
                self.displayError(error.localizedDescription)
