updated chapter 7 examples for Swift seed 5