while (alive) { eat(); sleep(); fart(); code(); repeat(); } else { if ( isGoodGuy) { goToHeaven(); } else { goToHell(); } }