Finished 5/7 exercises from chapter 10