adding index example