add example for slice type