Countries project solution
I hope you tackled the project and succeeded!
Here's my solution.
Your solution doesn't have to be exactly the same, as long as it works in a similar way and you understand it.
Nonetheless I hope seeing my solution will be useful!