fixed wrong solution from exercise 5.