Completed problem 1.