New index for HW4.1