Examples from "The Swift Programming Language" by Apple