Source code for Swift Day 6