Code reference to iBook "The Swift Programming Language"