Solutions to exercises from the book "Swift for the really impatient"