last two homeworks reworked