Basis of stock market and how it works