updated chapter 12 examples for Swift seed 5