Thank you for helping me out! Could you add the explanation you gave me at the end to the code itself in the form of comments?