Refactored code so products are retrieved based on the scanned barcode
Scanning an item that does not exist should thrown an error.