Made example 3.7 in Nature of Code into a small project.