completed extra credit exercise 5