There is another approach. Check this video.

https://www.youtube.com/watch?v=ophqt_RmiS0

C
ode in description.