Finished Chapter 5 excercises