stock_data * const m, ofstream * const out