ex4
exercises 5 - 8