Rewritten in Swift

Fore -> For