problem 6 & 7