standardized the line item creation and adding products to the carts. both now work with instances of the Product class