 class Tweet: NSObject {
     var name: String!
     var text: NSAttributedString!
+    var since: String!
 }
 
 class ViewController: NSViewController {

    }

    func update(){
        print("update")
        let failureHandler: (Error) -> Void = { print($0.localizedDescription) }
        self.swifter.getHomeTimeline(count: 20, success: { statuses in
            print(statuses)
            guard let tweets = statuses.array else { return }
            self.tweets = tweets.map {
                let tweet = Tweet()
                tweet.text = self.attributedString($0["text"].string!)
                tweet.name = $0["user"]["name"].string!
                return tweet
            }
            
            self.collectionView.reloadData()
            
        }, failure: failureHandler)

                        let tweet = Tweet()
                        tweet.text = self.attributedString($0["text"].string!)
                        tweet.name = $0["user"]["name"].string!
                        tweet.since = $0["id_str"].string!
                        return tweet
                    }
                    
