added Problem 7