A bit more of chapter 4 exercise 1