HW4 Recursive