updated chapter 10 examples for Swift seed 5