ex19: Added assert() call and health percentage