Complete Problem 6 & 7