added hero class and tests for it