typo in problem 6