Here’s your formatted code:
same code
If you put forth an effort into making your own solution, I’ll offer you help.