This is the small factory example from W.M. Wonham's Course notes.