Add map and flatMap to List