Slice of pie part 1

upload of proper code for slice of pie part 1