Mapping simplified by using map()