edit lecture: add maybeIndex to lecture 14