HW7 with error