Exercise 3.7: stylistical fix (thanks to @qrilka)