A stock market simulator