added code for new__class without handling for SELF_TYPE