The security agreement calls for American forces to pull back from cities by the end of June and the from rest of the country by the end of 2011 .