completed problem 2