completed exercise 7 and exercise 8