homework6 reworked