As a solution to the question in the subject I found this code on the internet and it worked but I have some questions regarding some parts of the code:
1-How is it p