     
     // MARK: - Stored Properties
     
-    var inventory: Inventory?
+    var inventory: Inventory!
     
     var counter = 0 {
         willSet {

            self.load(Inventory(name: "Inventory Name", count: "0", image: UIImage(named: Icon.box.getName()), modifiedDate: self.getCurrentDateAndTime()))
        }
        else {
            self.load(self.inventory!)
        }
    }
    

    @IBAction func saveBarButtonItemDidTouch(_ sender: UIBarButtonItem) {
        guard let validInventoryName = self.inventoryNameTextField.text, let validCounter = self.counterLabel.text else { return }
        self.inventory = Inventory(name: validInventoryName, count: validCounter, image: self.inventoryImageView.image, modifiedDate: self.getCurrentDateAndTime())
        self.delegate?.getInventory(self.inventory)
        self.dismissAddViewController()
    }
    
