     @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.delegate?.getInventory(self.inventory)
         self.dismissAddViewController()
     }
     

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

        
        self.navigationItem.hidesBackButton = true
        
        self.decrementButton.setTitle(String(), for: .normal)
        self.decrementButton.setImage(UIImage(named: Icon.decrement.getName()), for: .normal)
        self.incrementButton.setTitle("", for: .normal)
        self.incrementButton.setImage(UIImage(named: Icon.increment.getName()), for: .normal)
        
        self.inventoryNameTextField.returnKeyType = .done
        self.inventoryNameTextField.delegate = self
        
