first problem of chapter 4, on arrays