exercise 1 (a) and (b)