Code to learn Swift