finshed exercise 6