Use `lists:map/2` in the example