Added new generated code
Implented index for superclasses.