Final HW solution