Provided code for adding new products and applying discount on products.