Luck, bold moves led to budget surplus