Not understanding very basic FP stuff like flatten and map (or flatmap) but using big data stuff is wild...