Completed part 4 of hw5