Adding exercise 16-18

Exercise 16 to Exercise 18