Finished Exercises from chapter 5