Added normalixed_index function. Tests pass.