I don't think anyone saw John Key's resignation coming - not now anyway.
In saying that, I think his timing has already earned him a lot of respect and will ensure he is remembered as a prime minister who was honest and upfront.
He could have continued to lead the party through the next election, which I think he stood a good chance of winning, and stepped down soon after.
That would likely have left those who voted for him feeling let down and disillusioned.
By stepping down almost a year out from the next election he is giving the next leader a chance to find his feet, show the country what they are made of, and win the support of voters before we next head to the polls.