Assignment 1 Learning the basics of Swift Solution