Finished chapter 8's exercises