finished ex6 part 5