ex6 hw1 done