HW9: Complete Rewrite from office hours