Should use ```enumerate``` here instead of the ```map```.