add stock.cpp