added Problem 6