add 3-state example