fixed part 7

I copied the part 7 solution