Add class, update index