Assignment due in few hours..need help with health system!

there now its done for you. now for your real homework i want you to figure out how and why it works. then make some modifications so it works in different ways and or in different circumstances.