add index with example

add index with example