S&P 500 rises nearly 10 percent this year