Exercise 6.9: Implement flatMap, then use it to reimplement positiveInt.