Rewritten in Swift

sneaking web topics in here are we? :-)