Completed part 2 of HW 4