Second HW solution