Finish Excercise chapter 6