Part 2

The code for part 2