The code throws lots of errors in: -Xcode 9 -Swift version 4.0.2 screenshot below: 