     }
     
     
-    // MARK: - Load Memories Function
+    // MARK: - Load and Save Memories Functions
     
     func loadMemories() {
         memories.removeAll()

        // reload the list of memories
        collectionView?.reloadSections(IndexSet(integer: 1))
    }

}

    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        // add a nav bar button to add a photo
        navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .add, target: self, action: #selector(addPhoto))
        
        loadMemories()
    }
