using trailing closures in SwiftDemo