a simple swift demo