It does not compile - chapter 8

am I doing something wrong?