HW5 Problem 2 Done