Problem 6 copied from answering key