HW3 Problem 4.19 Extra Credit: 4.24