For HW6-Part2