Chap 6 ex 11 new book refactoring. broken