a simple swift practice