what is share market and how it works