Done HW6 for group 4