changed example2 to index