Review map and flatMap functions