Finished Exercise 8 and its Extra Credit