Updated and renamed file

I've changed the `for` to use `map` instead.