Added addProduct logic to retur the product id