Finished extra credit exercise 8