Cool. I like how you used ``when.map()`` for this