This is the monster class. It will work if the private member variables in character are changed to protected so it can properly inherit them.