Finished excercises chapter 10