Practice code for learning swift