uploaded problem 2