Coding state machines (was Re: Case-logic)