FI program in Swift