Justin Bieber pleaded guilty today (Wednesday) to misdemeanor charges of careless driving and resisting arrest in his Miami arrest from earlier this year.

As part of the plea deal, the Bieb will take a 12-hour anger management course and make a $50,000 charitable contribution and fines. His lawyer says the singer has already given the money to a local children's charity.

Justin was arrested in January in Miami Beach after allegedly being involved in an illegal street race; though he was never charged with drag racing.

This leaves Bieber with two pending cases. He's charged with assaulting a limousine driver in Toronto in late December and he's being sued in Miami by a photographer who says he was roughed up while taking photos of the singer.