traverse inheritance graph when doing dynamic attribute access for sample data