Age program 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.
Also remember my solution tackles the optional requirements as well, so it may be longer than yours!
Nonetheless I hope seeing my solution will be useful!