Create AssignmentToIndex.m