incorporated the code to heroObject and all the inheritance stuff is done