what are the ways to invest in stock market