moved the getHero function as a method in heroViewer