exercise set 6, ex1 done