Added new versions of the chapter 12 examples using map, grep, and sort