     
     func addFlashcard(deckID: String, flashcard: Flashcard, completion: (DataManagerResponse<Flashcard>) -> ()) {
         handleJSONRequest(
+            localFetch: {
+                self.localDataManager.update(flashcard)
+                return flashcard
+            },
             remoteFetch: {
                 self.remoteDataManager.addFlashcard(deckID, flashcard: flashcard, completion: $0)
             }, completion: completion)

    
    func Flashcards(deckID: String, completion: (DataManagerResponse<[Flashcard]>) -> ()) {
        handleJSONRequest(
            remoteFetch: {
                self.remoteDataManager.findFlashcards(deckID, completion: $0)
            }, completion: completion)

    
    func updateFlashcard(deckID: String, flashcard: Flashcard, completion: (DataManagerResponse<Flashcard>) -> ()) {
        handleJSONRequest(
            localFetch: {
                self.localDataManager.update(flashcard)
                return flashcard
            },
            remoteFetch: {
                self.remoteDataManager.updateFlashcard(deckID, flashcard: flashcard, completion: $0)
            }, completion: completion)
