we're going to rewrite the interpreter to accord with the implemented UI
specify an API for the UI to run code
update API to latest discussion
tweak and add an example (factorial)