Added the code for Slice of Pie Part 2