Example code used in the Web Developer's Guide to iOS Programming with Swift