finished converting chapter 34 examples to swift