Chapter 5 exercise 13 - done the next bit - implemented takeWhile in terms of unfold