Finished excercises of chapter 7