modificated index

add exercise 4