Nice one, but you didn't have to invent the wheel :)
SE have original car charger like this :)
It's CLA-60 Car Charger: