             }
             self.hashtags = hashtagsArray
         } else { self.hashtags = nil}
-        if let mentionsDicts = dictionary["mentions"] as? [[String: Any]] {
+        if let mentionsDicts = dictionary["user_mentions"] as? [[String: Any]] {
             var mentionsArray: [Entities.Mention] = []
             for dict in mentionsDicts {
-                print("mention")
                 let nextMention = Entities.Mention(dictionary: dict)
                 print("\(nextMention)")
                 mentionsArray.append(nextMention)
             }
             self.mentions = mentionsArray
         } else {
-            print("no mentions")
             self.mentions = nil
         }
-        if let linksDicts = dictionary["links"] as? [[String: Any]] {
+        if let linksDicts = dictionary["urls"] as? [[String: Any]] {
             var linksArray: [Entities.Link] = []
             for dict in linksDicts {
                 let nextLink = Entities.Link(dictionary: dict)

            let entities = Entities(dictionary: entitiesDictionary)
            if let hashtags = entities.hashtags {
                print(hashtags)
                for hashtag in hashtags {
                    print("\(hashtags.count) hashtags found")
                }
            }
            if let mentions = entities.mentions {

        let url: URL
        let expandedURL: URL
        let displayURL: URL
        let indices: [Int]?
        
        init(dictionary: [String: Any]) {
            let urlString = dictionary["url"] as? String ?? ""
            let expandedURLString = dictionary["expanded_url"] as? String ?? ""
            let displayURLString = dictionary["display_url"] as? String ?? ""
            self.url = URL(string: urlString)!
            self.expandedURL = URL(string: expandedURLString)!
            self.displayURL = URL(string: displayURLString)!
            self.indices = dictionary["indices"] as? [Int] ?? [0, 0]
        }
    }
