updated chapter 2 examples for Swift seed 5