made the example more swifty