Updated all the examples to pass in slices