bind undefined class methods as instace methods parent class