HW7 some of a,b,c and d done