Creation of formula (spreadsheet) mode

`string` isn't a keyword. Also, you could just use strings to identify states, rather than named integers, it's more idiomatic.