Modified the add function in StockControl.cs