It works great!!
I was dealing with it for 3 days and was so hopeless and were just writing loop inside loops lol, and now im just staring at your stunning code and im like how it is possible … 
basically im googleing every line of your code to understand what is going on :))
Thanks a lot