completed problem 1