Finish Excercise of chapter 3