Some random swift code