updated hero class