start of hw6
Restoring old index