how to invest in the stock market in 2024