A recipe for hand crafting Finite State Machines (a work in progress)