Exercises 1 and 2 of set 1 - partial on 3

From Set 1, exercises 1 and 2 have been completed. Exercise 3 is
partially completed.

 Please enter the commit message for your changes. Lines starting