Switch index instance to class instance variable