converted remaining chapter 17 examples to Swift