Experimenting with a scala functional for comprehension.