still continuing to convert Bk 2 chapter 5 examples to Swift