So sorry! I didn't realize these problems were already answered...
However, question 2 is a bit different than the link you are referring to, maybe it was a mistake?
Question 4's answer was incorrect. Other than those, your solution, and the one for question 3 were very helpful, thank you so much for those!