It was another largely great quarter for the stock market — completing a strong first half of the year.