adding flatmap
2.41, ordered triples