Chapter 8: word sorting