added methods to the Hero class