Exercise 4, method 2