Exercises 19 and 20

Functions