Fix for part 2 of hw5