Replacing closet light

One of the lights in our rear closet stopped working properly; very dim, and only half working:

Plus blinking:

I unmounted it from the ceiling:

Then replaced it with a new one, bought from Tiffin:

Remounted on the ceiling:

Done:

An easy fix.