An excercise from raywenderlich.com to learn swift