adding indices
ex.3
ex.4
ex.5
ex.6