Code from “Swift Tutorial: Building an iOS Application” by Jack Watson-Hamblin at Airpair.com