fixed typo in problem 6