Made adjustments to HW 5 to complete HW 7