Updated chapter 5 for changes in Xcode beta 4 (Need to import Foundation)