Too few arguments in new function

In reply to cgales:

Do you mean the new function can not be changed in my class ? I only keep use name and parent as the parameter for this function ?