The economy posted a 1.7 % decline in 2009 , but pulled out of recession late in the year , and achieved 2.1 % growth in 2010 .