homework8 reworked again