completed swift example