     let favoritesUserDefaultsKey = "FavoriteBooks"
     
     var tags = [String]()
+    var books = BooksArray()
     var dictionary = [String: BooksArray]()
     var isLibraryChanged = false
+    
+    let sortClosure = { (book1: Book, book2: Book) -> Bool in
+        return book1.title < book2.title
+    }
     
     init (json: NSData) {
         if let jsonArray = try? JSONManager.loadFromData(json) {

        return tags.count
    }
    
    func numberOfBookFromTag(tag: String) -> Int {
        guard let count = dictionary[tag]?.count else {
            return 0

        return tags[i]
    }
    
    func getBookAtIndex(index: Int) -> Book {
        return books[index]
    }
    
    func getBookFromTag(tag: String, atIndex i: Int) -> Book? {
        return dictionary[tag]?[i]
    }
