updated chapter 4 examples for Swift seed 5