HW7 Ex2 done