Simplify the mini complete example and exit 0 and end of ch06 example explicitly