TurnTicketDispenser exercise ported to Swift