added 'StockSim' Code