How does the stock market function?