The economy in the U.S. grew at a good rate during the fourth quarter of 2013, as consumers spent more and businesses increased their investment. The last six months of 2013, marked one of the best periods of growth over six months in the past decade.

The gross domestic product, which is the goods and services produced, is the broadest measure across the economy. It was up by a seasonally adjusted rate of 3.2% during the last three months of 2013, said the Department of Commerce on Thursday.

Economists had estimated the growth to be the same for that period. For 2013, the economy was up by 1.9%. The last time the U.S. economy expanded at a rate of 3% on an annual adjusted rate was prior to the recent recession, when it grew by 3.4% in 2005. In 2012, the GDP expanded by 2.8%.

Increased spending by businesses and consumers and healthier exports helped the growth during the fourth quarter, which offset the declines form the residential and government sectors. Imports, which are subtracted from GDP, increased.

The latest figures of the GDP show the economy increased by a pace of 3.7% over the second six months of 2013, a sharp increase from the 1.8% increase over the first six months of 2013.

It was the strongest second six-month increase since 2003, when the economy grew by a pace of 5.8%.

The report on Thursday showed the economy had remained resilient even though there had been budget battles in Washington and a partial shutdown in the government in October. Some consumers and businesses had been forced to re-examine spending decisions and might had stopped people from making large purchases.

Signs of consumer spending strengthening also suggest the consumer withstood the increase in payroll tax during the beginning of 2013 and benefitted from a labor market that improved.

The U.S. Federal Reserve indicated an underlying strength in the economy when it said on Wednesday it would continue to pare back its program of bond buying.

It will purchase $65 billion monthly in bonds as of February.

The Fed forecast that the U.S. economy would increase this year between 2.8% and 3.2%.