updated chapter 3 examples for Swift seed 5