Add function for walk through parent classes/functions tree