Can anyone briefly explain the working of a stock market? Please tell me about its functioning.