added Problem 3