HW7: completed *