Completed problem 2.