Examples from Swift Book