European leaders have agreed a deal that they hope will solve the eurozone crisis.

Banks are writing off 50 percent of Greek debt, they'll also have to boost their cash reserves.

And there's been agreement to increase the amount of cash in a bail-out fund, in case other countries get into trouble.