add stock-compare code