Update stock.cpp