Actually exactly I followed your path only.
In case you still want, I will upload it on github for you.