Adding some code to help traverse class hierarchies
This works, but to get to the top of the hierarchy a global

may be the way to go