hw 2nd inverse index lab, done. all question correct!