swift changes for chapter 7