Click this link to download the first example I showed in class.
You can find this first example at the end of the lecture recording for the Swift Intro lecture.
You should read chapter 1 of the textbook.