I realized this question has been asked many times but I cannot find any solution which fixes my issue. I found this code online and tried to run it to understand how it act