Did problem 6