Chapter 7 - HOFs

/cc @fabioyamate @laurocaetano
clever, I wasn't happy with the `length . (filter (==1)` approach