suggested solutions, exercise 3