Added part 7 code