adding problem 3