Example in chapter 3, divideandappend