completed exercise 5-1