my swift code. exercises.