swift example for learning