create basic state flow

I don't think ``jspot`` will be able to extract this (because it won't have the list of toilet codes).