updated chapter 6 examples for Swift seed 5