rename Interpreter#failed to Interpreter#failure
cleanup the example template
refactor interpreter