done with prob 7 proj 2