Completed excercises chapter 5